<?php
namespace Hive\Contact\Wish;
/**
 * Contact Wish Mood Object. 
 * 
 * It represant the mood of a contact.
 *
 * @author Xavier VILAIN
 * @package Hive\Contact
 * @subpackage Hive\Contact\Wish
 * 
 * @property string	$mood			Unique id (4)
 * @property string	$language		Language (5) 
 * @property string	$label			Label
 * @property bool	$standard		Is a standard type (can't be deleted)
 * @property bool	$active			Is an active type (can be selected)
 * @property bool 	$loekz 			Deletion Flag if true is an been deleted
 */
class Mood extends \Fox\Object\Versioned\Customizing {
		/**
		 * Link to Wishes
		 * @var string
		 */
		const LINK_WISHES = 'wishes';
}
\Fox\Dao::infos(Mood::className(),new \Fox\Object\Info('contact_wish_moods', \Fox\Databases::DB_APP));

// Link to i18n elements
\Fox\Object\Links::add(\Fox\Dao::link(Mood\I18n::className(),Mood::LINK_SOURCE_REFERENCE)
->to(Mood::className(), Mood::LINK_I18N)
->on('mood')
//->cache(new \Fox\Dao\MemoryCacheZone(\Fox\Dao\MemoryCacheZone::PERIOD_FOREVER,Mood::cacheDirectory()))
->versionFrom());